<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
  <head>
    <%@ include file="common/head.jsp" %>
  </head>
<script><!--

function ok() {

	var city = "";
	city = setInputCity();
	if (city != "" && city != undefined) {
		document.settingForm.submit();
	}
}

function setInputCity() {

	var city = "";
	var cityCount = document.settingForm.city.length;
	for (var i = 0; i < cityCount; i++) {

		if (document.settingForm.city[i].checked) {
			city = document.settingForm.city[i].value;
			break;
		}
	}
	return city;
}

//--></script>
  <body>
  <form name="settingForm" method="post" action="setting">

<br><br>
<h1>Setting</h1>
<mainMenu>●今日の天気　</mainMenu><br>
<table style="mainContent">
  <tr>
    <td><input type="radio"" name="city" value="tokyo">東京</td>
    <td><input type="radio"" name="city" value="osaka">大阪</td>
  <tr>
  <tr>
    <td><input type="radio"" name="city" value="seoul">ソウル</td>
  </tr>
</table>
<chibiContent>今日の天気に表示する都市を選択してください。</chibiContent><br>
<input type="image" src="img/b_setting.gif" alt="setting" onClick="ok()">

<br><br>

<%@ include file="common/foot.jsp" %>

  </form>
  </body>
</html>
